home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #5 & #6 / Amiga Plus CD - 1995 - No. 5 and 6.iso / pd / netz / term / extras / source / term-source.lha / termExtras.h < prev    next >
C/C++ Source or Header  |  1995-02-07  |  4KB  |  134 lines

  1. /*
  2. **    termExtras.h
  3. **
  4. **    Extra symbol definition file
  5. **
  6. **    Copyright © 1990-1995 by Olaf `Olsen' Barthel
  7. **        All Rights Reserved
  8. */
  9.  
  10.     /* Special character codes. */
  11.  
  12. #define XOF '\21'
  13. #define XON '\23'
  14.  
  15. #define BEL '\a'
  16. #define VTB '\v'
  17. #define TAB '\t'
  18. #define BKS '\b'
  19. #define ENT '\n'
  20. #define RET '\r'
  21. #define ESC '\033'
  22. #define DEL '\177'
  23. #define FFD '\f'
  24. #define CAN '\030'
  25. #define SUB '\032'
  26. #define ENQ '\005'
  27. #define SI  '\016'
  28. #define SO  '\017'
  29.  
  30.     /* Internally handled control keys. */
  31.  
  32. #define CUP 150
  33. #define CDN 151
  34. #define CFW 152
  35. #define CBK 153
  36.  
  37. #define FN1 128
  38. #define FN2 129
  39. #define FN3 130
  40. #define FN4 131
  41. #define FN5 132
  42. #define FN6 133
  43. #define FN7 134
  44. #define FN8 135
  45. #define FN9 136
  46. #define F10 137
  47.  
  48. #define HLP 149
  49.  
  50.     /* Control sequence introducer. */
  51.  
  52. #define CSI 155
  53.  
  54.     /* Standard IFF chunk types. */
  55.  
  56. #define ID_8SVX    MAKE_ID('8','S','V','X')    /* Eight bit sampled voice. */
  57. #define ID_VHDR    MAKE_ID('V','H','D','R')    /* Voice header. */
  58. #define ID_CHAN MAKE_ID('C','H','A','N')    /* Sound channel information. */
  59. #define ID_FTXT    MAKE_ID('F','T','X','T')    /* Formatted text. */
  60. #define ID_CHRS    MAKE_ID('C','H','R','S')    /* Character data. */
  61. #define ID_BODY    MAKE_ID('B','O','D','Y')    /* Generic data body chunk. */
  62.  
  63.     /* `term' private chunk types. */
  64.  
  65. #define ID_DATE    MAKE_ID('D','A','T','E')    /* Date and time information. */
  66. #define ID_NAME    MAKE_ID('N','A','M','E')    /* Date and time patterns. */
  67. #define ID_DIAL    MAKE_ID('D','I','A','L')    /* Number of phonebook entries. */
  68. #define ID_FAST    MAKE_ID('F','A','S','T')    /* Fast! macro settings. */
  69. #define ID_TRAP    MAKE_ID('T','R','A','P')    /* Trap command. */
  70. #define ID_SEQN    MAKE_ID('S','E','Q','N')    /* Trap sequence. */
  71. #define ID_TRST MAKE_ID('T','R','S','T')    /* Trap settings. */
  72. #define ID_HOTK    MAKE_ID('H','O','T','K')    /* Hotkey settings. */
  73. #define ID_KEYS    MAKE_ID('K','E','Y','S')    /* Function key settings. */
  74. #define ID_PHON    MAKE_ID('P','H','O','N')    /* Phonebook data. */
  75. #define ID_PREF    MAKE_ID('P','R','E','F')    /* Preferences data chunk. */
  76. #define ID_PSWD    MAKE_ID('P','S','W','D')    /* Password entry. */
  77. #define ID_RECV    MAKE_ID('R','E','C','V')    /* Translation table data (receiver side). */
  78. #define ID_SEND    MAKE_ID('S','E','N','D')    /* Translation table data (sender side). */
  79. #define ID_TRNS    MAKE_ID('T','R','N','S')    /* Translation table data (master table). */
  80. #define ID_SPEK    MAKE_ID('S','P','E','K')    /* Speech settings. */
  81. #define ID_TERM    MAKE_ID('T','E','R','M')    /* `term' data chunk. */
  82. #define ID_VERS    MAKE_ID('V','E','R','S')    /* Version identification. */
  83. #define ID_WIND    MAKE_ID('W','I','N','D')    /* Fast! macro window size and position. */
  84. #define ID_SOUN    MAKE_ID('S','O','U','N')    /* Sound settings. */
  85. #define ID_WINF    MAKE_ID('W','I','N','F')    /* Window position/size information. */
  86.  
  87.     /* `term' configuration and phonebook file chunk types. */
  88.  
  89. #define ID_SERL    MAKE_ID('S','E','R','L')    /* Serial settings. */
  90. #define ID_MODM    MAKE_ID('M','O','D','M')    /* Modem settings. */
  91. #define ID_COMD    MAKE_ID('C','O','M','D')    /* Command settings. */
  92. #define ID_SCRN    MAKE_ID('S','C','R','N')    /* Screen settings. */
  93. #define ID_TRML    MAKE_ID('T','R','M','L')    /* Terminal setting. */
  94. #define ID_PATH    MAKE_ID('P','A','T','H')    /* Path settings. */
  95. #define ID_MISC    MAKE_ID('M','I','S','C')    /* Misc settings. */
  96. #define ID_CLIP    MAKE_ID('C','L','I','P')    /* Clip settings. */
  97. #define ID_CPTR    MAKE_ID('C','P','T','R')    /* Capture settings. */
  98. #define ID_FILE    MAKE_ID('F','I','L','E')    /* File settings. */
  99. #define ID_EMLN    MAKE_ID('E','M','L','N')    /* Emulation settings. */
  100. #define ID_XFER    MAKE_ID('X','F','E','R')    /* Transfer settings. */
  101.  
  102.     /* Some pragmas to make life easier... */
  103.  
  104. #pragma libcall GfxBase SetWriteMask 3D8 0802
  105. #pragma libcall GfxBase GetAPen 35A 801
  106. #pragma libcall GfxBase GetBPen 360 801
  107. #pragma libcall GfxBase GetDrMd 366 801
  108.  
  109.     /* Use a simple address trick instead of the predefined
  110.      * address in amiga.lib.
  111.      */
  112.  
  113. #ifndef custom
  114. #define custom (*(struct Custom *)0xDFF000L)
  115. #endif    /* custom */
  116.  
  117.     /* These seem to have got lost... */
  118.  
  119. #ifndef MTYPE_APPWINDOW
  120. #define MTYPE_APPWINDOW    7
  121. #endif    /* MTYPE_APPWINDOW */
  122.  
  123. #ifndef MTYPE_APPICON
  124. #define MTYPE_APPICON    8
  125. #endif    /* MTYPE_APPICON */
  126.  
  127. #ifndef MTYPE_APPMENUITEM
  128. #define MTYPE_APPMENUITEM    9
  129. #endif    /* MTYPE_APPMENUITEM */
  130.  
  131.     /* Single precision boolean value. */
  132.  
  133. typedef char BOOLEAN;
  134.